This is the first public release of Transcript, a simple AppleScript-aware text display server-application. Transcript displays text from other applications which may then be copied or saved to a file.
Quite simply Transcript is a debugging utility that enables programs written in C & C++ to ‘printf’ to a scrolling window without having to add standard I/O type windows to the program itself. Additionally Transcript allows debugging code to be left in test releases of applications which then only display the information if Transcript is running. On top of all of that Transcript can also be used from within AppleScript.
The Transcript application is supplied as a fat binary and is compatible with Macintoshes and Power Macintoshes from SEs upwards and System 7.0 or later. It requires only 100K-140K of RAM to run and is compatible with RAM Doubler.
Transcript is free and may be distributed freely provided that it is distributed intact and complete. If you have any comments, suggestions, questions or offers of money or work please contact me via the above addresses.
THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Usage
C source code is supplied for a simple ‘Hello World!’ application and the ‘DbgPrintF’ function which is compatible with MPW 3.4.2’s SC[pp] & MrC[pp] and should also work with Symantec C++, Think C & Code Warrior with little or no modification. Also the file ‘Test Echo’ contains an example of how to use Transcript from within AppleScript.
To build the ‘Hello World!’ application:
• launch MPW,
• set the current directory to the ‘Hello World ƒ’ folder,
• type ‘BuildHelloWorld ø ’
To use Transcript from your C/C++ program you must compile the file ‘DbgPrintF.c’ and link it into your program along with the appropriate library (StdCLib/ANSI/ANSI—small++ or whichever contains the ‘vsprintf’ function that ‘DbgPrintF’ uses). Then include ‘DbgPrintF.h’ in your source file, and insert calls to
DbgPrintF(const char* format, ...);
wherever you like.
Note: the first time that the ‘DbgPrintF’ function is called it initialises itself. This includes allocating a 4K buffer to hold the output of ‘vsprintf’. If you need to print longer strings then you must change ‘DbgPrintF.c’.
Advertisement
Contact Christopher E. Hyde at drjekyll@hylight.demon.co.uk for all your Macintosh custom software development and user interface design needs.